package com.oauth.linkedin.server.global;

import org.springframework.beans.factory.annotation.Required;

import com.oauth.linkedin.server.service.LinkedinService;
import com.oauth.service.application.global.ApplicationGlobalServiceAdapter;

public class LinkedinGlobalService extends ApplicationGlobalServiceAdapter {

	private LinkedinService mLinkedinService;

	/*
	 * (non-Javadoc)
	 * 
	 * @see
	 * com.oauth.service.application.global.ApplicationGlobalServiceAdapter#
	 * updateStatus(java.lang.Long, java.lang.String)
	 */
	@Override
	public boolean updateStatus(Long pMemberId, String pStatusText) {
		// TODO Auto-generated method stub
		// mOrkutOAuthService.
		try {
			mLinkedinService.updateStatus(pStatusText, pMemberId);
		} catch (Exception e) {
			e.printStackTrace();
			return false;
		}
		return true;
	}

	/**
	 * @param pLinkedinService
	 *            the linkedinService to set
	 */
	@Required
	public void setLinkedinService(LinkedinService pLinkedinService) {
		mLinkedinService = pLinkedinService;
	}

}
